package com.springtest.aspectj.annotation;

import com.springtest.jdk.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAnnotation {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("aspectj.annotation.xml");
        UserDao userDao =(UserDao) applicationContext.getBean("userDao");
        userDao.addUser();
    }
}
